/**
 * FileName: UserFeignController
 * Author:   powersi
 * Date:     2021/1/31 22:37
 * Description: 1
 */
package comzm.demo.sc.consul.consumer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description: 1
 * Author:      powersi
 * Date:        2021/1/31 22:37
 */

@RestController
public class UserFeignController {

    @Autowired
    UserClient userClient;

    @RequestMapping("/feign/getUser")
    public String getUser(String userName){
        return userClient.getUser(userName);
    }
}
